package com.sunxiansheng.nacos.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * Description: RestTemplate 配置类
 * @Author sun
 * @Create 2024/7/27 16:19
 * @Version 1.0
 */
@Configuration
public class RestTemplateConfig {

    /**
     * 将 RestTemplate 注入到容器中
     * @return
     */
    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }

}